import hyRequest from "..";

// 发送网络请求
// hyRequest.post
interface IHomeData {
  data: DataType;
  returnCode: string;
  success: boolean;
}

interface DataType {
  title: string;
  id: number;
  content: string;
}

hyRequest
  .request<IHomeData>({
    url: "/home/multidata",
  })
  .then((res) => {
    res.data.content;
    console.log(res.data, res.success, res.returnCode);
  });
